package com.example.springbootsfzy.service.gengyifei;

import com.example.springbootsfzy.domain.ChargeStandardTypes;
import com.example.springbootsfzy.mapper.ChargeStandardTypesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class charge_standard_types_service {
    @Autowired
    private ChargeStandardTypesMapper chargeStandardTypesMapper;

    //通过主键删除
    public int deleteByPrimaryKey(int id) {
       return chargeStandardTypesMapper.deleteByPrimaryKey(id);
    }

    //通过参数信息  静态插入  收费标准类型
    public int insert(ChargeStandardTypes record){
        return chargeStandardTypesMapper.insert(record);
    }

    //通过参数信息   静态修改   收费标准类型表
    public int updateByPrimaryKey(ChargeStandardTypes record){
       return chargeStandardTypesMapper.updateByPrimaryKey(record);
    }

    //通过主键  查询  收费标准类型
    public ChargeStandardTypes selectByPrimaryKey(int id) {
       return chargeStandardTypesMapper.selectByPrimaryKey(id);
    }

    //查询所有收费标准类型
    public List<ChargeStandardTypes> selectAll() {
        return chargeStandardTypesMapper.selectAll();
    }

}
